﻿using DFGK_WMS.Model.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Models
{
    public class TReceivingOrderDetailCriteriaModel
    {
        /// <summary>
        /// 明细Id
        /// </summary>
        public int? Id
        {
            get;
            set;
        }

        /// <summary>
        /// 入库单编号
        /// </summary>
        public string OrderSN
        {
            get;
            set;
        }

        /// <summary>
        /// 单据类型
        /// </summary>
        public EmInBillType? BillType
        {
            get;
            set;
        }
        /// <summary>
        /// 仓库ID
        /// </summary>
        public int? WarehouseId
        {
            get; set;
        }
        /// <summary>
        /// 库房编码
        /// </summary>
        public string WarehouseCode
        {
            get; set;
        }
        /// <summary>
        /// 库房名称
        /// </summary>
        public string WarehouseName
        {
            get; set;
        }
        /// <summary>
        /// 库区编码
        /// </summary>
        public string AreaCode
        {
            get; set;
        }
        /// <summary>
        /// 库区名称
        /// </summary>
        public string AreaName
        {
            get; set;
        }

        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId
        {
            get;
            set;
        }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode
        {
            get;
            set;
        }

        /// <summary>
        /// 物料类型编码
        /// </summary>
        public string MaterialTypeCode
        {
            get; set;
        }

        /// <summary>
        /// 物料计量单位Id
        /// </summary>
        public int? UnitId
        {
            get;
            set;
        }

        /// <summary>
        /// ERP单号
        /// </summary>
        public string ERPCode
        {
            get;
            set;
        }

        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNO
        {
            get;
            set;
        }

        /// <summary>
        /// 质检日期
        /// </summary>
        public DateTime? QADate
        {
            get;
            set;
        }

        /// <summary>
        /// 生产厂家
        /// </summary>
        public string ProduceFactory
        {
            get;
            set;
        }

        /// <summary>
        /// 供应商Id
        /// </summary>
        public int? SupplierId
        {
            get;
            set;
        }

        /// <summary>
        /// 货主Id
        /// </summary>
        public int? OwnerId
        {
            get;
            set;
        }

        /// <summary>
        /// 物料Key
        /// </summary>
        public int? MaterialKeyId
        {
            get; set;
        }
        /// <summary>
        /// 质量状态：0-待检；1-合格；2-不合格；
        /// </summary>
        public int? QualityState
        {
            get; set;
        }

        /// <summary>
        /// 单据状态：0-创建;1-提交;2-审核通过;3-作业中；4-已完成;5-强制完成;6-失效；7-异常
        /// </summary>
        public int? Status
        {
            get;
            set;
        }

        /// <summary>
        /// 逻辑分区编码
        /// </summary>
        public string LogicalPartCode
        {
            get; set;
        }

        /// <summary>
        /// 物料凭证号
        /// </summary>
        public string MBLNR
        {
            get; set;
        }
        /// <summary>
        /// 部门编码
        /// </summary>
        public string DeptCode
        {
            get; set;
        }

        /// <summary>
        /// 合同号
        /// </summary>
        public string ContractNO
        {
            get; set;
        }
        /// <summary>
        /// 单据来源类型：0-手动建单；1-上层系统
        /// </summary>
        public int? SourceType
        {
            get; set;
        }

        /// <summary>
        /// 物料凭证年度
        /// </summary>
        public string MJAHR
        {
            get; set;
        }

        /// <summary>
        /// 物料凭证行项目
        /// </summary>
        public string ZEILE
        {
            get; set;
        }

        /// <summary>
        /// 采购订单号
        /// </summary>
        public string PurOrderNO
        {
            get; set;
        }
        /// <summary>
        /// 采购订单行号
        /// </summary>
        public string PurOrderLineNO
        {
            get; set;
        }
        /// <summary>
        /// 采购订单行项目类型：0-无；1-L外协；2-U转储;3-正常采购
        /// </summary>
        public int? PurOrderLineType
        {
            get; set;
        }
        /// <summary>
        /// 生产订单号
        /// </summary>
        public string ProOrderNO
        {
            get; set;
        }
        /// <summary>
        /// 外协需求跟踪号
        /// </summary>
        public string OutOrderNO
        {
            get; set;
        }

        /// <summary>
        /// 关联入库凭据Id
        /// </summary>
        public int? RefInVoucherId
        {
            get; set;
        }
        /// <summary>
        /// 收货明细Id
        /// </summary>
        public int? ReceivingBillId
        {
            get; set;
        }
        /// <summary>
        /// 创建人
        /// </summary>
        public int? CreateUserId
        {
            get;
            set;
        }
    }
}
